package scene.gameObject 
{
	import flash.geom.Point;
	/**
	 * ...
	 * @author carlor
	 */
	public class BasicData 
	{
		private var _id     : String;
		private var _job	: int;
		private var _name	: String;
		private var _dir	: int;
		private var _mapPos : Point;
		
		public function BasicData(data: Object) 
		{
			_id = data.id;
			_job  = data.job;
			_name = data.name;
			_dir = data.dir;
			_mapPos = data.mapPos;
		}
		
		public function dispose(): void
		{
			_name = null;
		}

		public function set dir(value: int): void
		{
			_dir = value;
		}
		
		public function get dir(): int
		{
			return _dir;
		}
		
		public function get id(): String
		{
			return _id;
		}
		
		public function get job(): int
		{
			return _job;
		}
		
		public function get name(): String
		{
			return _name;
		}
		
		public function get mapPos(): Point
		{
			return _mapPos;
		}
		
		public function set mapPos(value: Point): void
		{
			_mapPos = value;
		}
	}

}